package cn.dm.service;

import cn.dm.mapper.DmAreaMapper;
import cn.dm.pojo.DmArea;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class DmAreaServiceImpl implements DmAreaService {
    @Resource
    DmAreaMapper dmAreaMapper;


    @Override
    public DmArea getDmAreaById(Long id) throws Exception {
        return dmAreaMapper.getDmAreaById(id);
    }

    @Override
    public List<DmArea> getDmAreaListByMap(Map<String, Object> param) throws Exception {
        return dmAreaMapper.getDmAreaListByMap(param);
    }

    @Override
    public Integer getDmAreaCountByMap(Map<String, Object> param) throws Exception {
        return dmAreaMapper.getDmAreaCountByMap(param);
    }

    @Override
    public Integer qdtxAddDmArea(DmArea dmArea) throws Exception {
        return dmAreaMapper.insertDmArea(dmArea);
    }

    @Override
    public Integer qdtxModifyDmArea(DmArea dmArea) throws Exception {
        return dmAreaMapper.updateDmArea(dmArea);
    }
}
